<template>
  <div>
    这是登录页面
    <button @click="login">登录</button>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    login() {
      localStorage.setItem("token", "123123");
      this.$router.push("/index");
    },
  },
};
</script>

<style lang="less" scoped></style>
